package com.dudu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.dudu.dto.OrderUserDto;
import com.dudu.pojo.Orders;
import com.dudu.pojo.Services;
import com.dudu.vo.ConfirmPhoneVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Orders> {

    boolean addOrder(Orders orders);

    List<OrderUserDto> getOrdersList();

    boolean receiveOrder(Services services);

    Services getServiceByOrderId(@Param("orderId") String orderId);

    Services confirmPhone(ConfirmPhoneVo confirmPhoneVo);

    Orders getOrderById(Orders orders);

    Orders getOrderByOrderId(@Param("orderId") String orderId);

    boolean updateOrderStatus(Orders orders);
}
